<?php
    /**
     * Created by PhpStorm.
     * User: Administrator
     * Date: 2017/4/12
     * Time: 9:21
     */
    
//    醫生

class Doctor extends Father {
    function __construct($name,$age,$height,$weight)
    {
        $this->name = $name;
        $this->age = $age;
        $this->height = $height;
        $this->weight = $weight;
        echo "構造函數執行完成::"."姓名是".$name."年龄是：".$age."身高是：".$height."体重是：".$weight."<br>";
        
    }
    public function profession(){
        echo "我的職業是：医生"."<br>";

    }
}